import request from '@/utils/request'

// 获取服务信息
export function getServer() {
    return request({
        url: '/monitor/server',
        method: 'get'
    })
}

export const getDataSource = () => {
    return request({
        url: '/test/user/list/getDataSource',
        method: 'get'
    })
}

export const setDataSource = (data) => {
    return request({
        url: '/test/user/list/setDataSource',
        method: 'post',
        data: data
    })
}